
package com.uit.ecommerce.bo;

import com.uit.ecommerce.access.mapper.WeatherCountryMapper;
import com.uit.ecommerce.dto.WeatherCountryDTO;
import java.util.ArrayList;

public class WeatherCountryBO {
public ArrayList<WeatherCountryDTO> GetAllWeatherCountry() throws Exception{
    WeatherCountryMapper WCM=new WeatherCountryMapper();
    return WCM.GetAllWeatherCountry();
}
public void insertWeatherCountry(WeatherCountryDTO cls) throws Exception{
    WeatherCountryMapper WCM=new WeatherCountryMapper();
    WCM.insertWeatherCountry(cls);
}
public void DeleteWeatherCountry(WeatherCountryDTO cls) throws Exception{
    WeatherCountryMapper WCM=new WeatherCountryMapper();
    WCM.DeleteWeatherCountry(cls);
   }
public boolean checkWeatherCountryExit(WeatherCountryDTO cls) throws Exception{
     WeatherCountryMapper WCM=new WeatherCountryMapper();
    return WCM.checkWeatherCountryExit(cls);
}
public ArrayList<WeatherCountryDTO> GetAllWeatherCountryByName(String Name) throws Exception{
    WeatherCountryMapper WCM=new WeatherCountryMapper();
    return WCM.GetAllWeatherCountryByName(Name);
}
public ArrayList<WeatherCountryDTO> GetAllWeatherCountryByCode(String Id) throws Exception{
     WeatherCountryMapper WCM=new WeatherCountryMapper();
    return WCM.GetAllWeatherCountryByCode(Id);
}
 public ArrayList<WeatherCountryDTO> GetAllWeatherCountryByDate(String Date) throws Exception{
     WeatherCountryMapper WCM=new WeatherCountryMapper();
    return WCM.GetAllWeatherCountryByDate(Date);
 }
 public WeatherCountryDTO GetWeatherCountryByDateAndName(String Date,String Country) throws Exception{
     WeatherCountryMapper WCM=new WeatherCountryMapper();
    return WCM.GetWeatherCountryByDateAndName(Date, Country);
 }
}
